package com.sunny.ynhz.ui.patrol;

import android.os.Bundle;
import com.sunny.ynhz.R;
import com.sunny.ynhz.ui.base.AppBaseTranslationTitleBarActivity;

/**
 * Created by luao on 2017/7/20.
 */

public class HistoryPatrolActivity extends AppBaseTranslationTitleBarActivity {
//    @BindView(R.id.history_patrol_recycler)
//    UltimateRecyclerView historyPatrolRecycler;
//    private WrapRecyclerView refreshableView;
//    private HistoryPatrolAdapter historyPatrolAdapter;
//    private LinkedList<HistoryPatrolBean.DataBean.RowsBean> historyPatrolList;
//    private int pageForRequest = 1;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.fragment_history_patrol);
//        refreshableView = historyPatrolRecycler.getRefreshableView();
//
//        historyPatrolList = new LinkedList<>();
//        LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
//        refreshableView.setLayoutManager(linearLayoutManager);
//        historyPatrolRecycler.setMode(PullToRefreshBase.Mode.BOTH);
//        historyPatrolAdapter = new HistoryPatrolAdapter(this, historyPatrolList);
//        refreshableView.setAdapter(historyPatrolAdapter);
//        historyPatrolRecycler.setOnRefreshListener(new PullToRefreshBase.OnRefreshListener2<WrapRecyclerView>() {
//            @Override
//            public void onPullDownToRefresh(PullToRefreshBase<WrapRecyclerView> refreshView) {
//                getDataWithPage(1);
//            }
//
//            @Override
//            public void onPullUpToRefresh(PullToRefreshBase<WrapRecyclerView> refreshView) {
//                getDataWithPage(pageForRequest);
//
//            }
//        });
//
//        //3s延时后，刷新，
//        new Handler().postDelayed(new Runnable() {
//            @Override
//            public void run() {
//                historyPatrolRecycler.setRefreshing();
//            }
//        }, 300);
    }




}
